﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Text;

namespace Ruleweaver.Rules
{
	public sealed class CheckRule : Rule
	{
		internal CheckRule(MethodInfo method, IEnumerable<object> checkArguments) : base(RuleType.Check)
		{
			Method = method;
			CheckArguments = checkArguments.ToList().AsReadOnly();
		}

		public new MethodInfo Method { get; private set; }

		public ReadOnlyCollection<object> CheckArguments { get; private set; }
	}
}